package fightplan.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

import fightplan.core.Resources;

@SuppressWarnings("serial")
public class AboutAction extends AbstractAction {

	public static final String DATE = "18.9.2012";
	public static final String VERSION = "1.6.0";

	private JFrame frame;

	public AboutAction(JFrame frame) {
		super("Über");
		this.frame = frame;
	}

	public void actionPerformed(ActionEvent actionEvent) {
		String m = "Auslosungsprogramm " + DATE + "\nVersion " + VERSION + ". GPLv3 Release."
				+ "\n\nAutor: Bruno Eberhard (bruno.eberhard@pop.ch)"
				+ "\n\nDieses Programm benutzt Libraries von Apache.\n"
				+ "Icons entnommen von IconExperience (freie Sammlung)\n"
				+ "und der Sammlung Novula von David Vignoni (LGPL).";
		JOptionPane.showMessageDialog(frame, m, "Auslosungsprogramm", JOptionPane.INFORMATION_MESSAGE,
				Resources.getIcon("goblet_gold.48.png"));
	}

}